package com.ruoyi.system.controller.backend;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.controller.CxBase;
import com.ruoyi.system.domain.backend.CaseBack;
import com.ruoyi.system.domain.backend.CaseBackDeployment;
import com.ruoyi.system.domain.front.DicData;
import com.ruoyi.system.domain.front.StudentInfoFront;
import com.ruoyi.system.domain.front.UpdatePhone;
import com.ruoyi.system.service.backend.IStudentBackService;
import com.ruoyi.system.service.front.IStudentFrontService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;

/**
 * 案件信息Controller
 *
 * @author ruoyi
 * @date 2021-04-07
 */
@RestController
@RequestMapping("/system/back/studentback")
public class StudentBackController extends CxBase {
    @Autowired
    private IStudentBackService studentBackService;
    @Autowired
    private IStudentFrontService studentFrontService;

    /**
     * 读取字典
     */
    @GetMapping("/selectdic")
    public TableDataInfo selectdic(DicData dicData)
    {
        logput(dicData,Thread.currentThread().getStackTrace()[1].getMethodName(),this.getClass());
        TableDataInfo tableDataInfo = getDataTable(studentFrontService.selectdic(dicData));
        logout(tableDataInfo,Thread.currentThread().getStackTrace()[1].getMethodName(),this.getClass());
        return tableDataInfo;
    }

    /**
     * 读取处理人员
     */
    @GetMapping("/selectCPinfo")
    public TableDataInfo selectCPinfo(CaseBackDeployment caseBackDeployment)
    {
        logput(caseBackDeployment,Thread.currentThread().getStackTrace()[1].getMethodName(),this.getClass());
        TableDataInfo tableDataInfo = getDataTable(studentBackService.selectCPinfo(caseBackDeployment));
        logout(tableDataInfo,Thread.currentThread().getStackTrace()[1].getMethodName(),this.getClass());
        return tableDataInfo;
    }


}

